home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / genial / ui / linedom.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  733 b   |  50 lines

  1. /*
  2.  * linedom.c -- routines for setting / geting the line drawing mode domains
  3.  *
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include "display.h"
  8. #include "ui.h"
  9. #include "reg.h"
  10.  
  11. static char *line_strtab[3] =
  12. { "Click and Click", "Click and Drag", "Least Squares Fit"};
  13.  
  14.  
  15. line_setdom(reg)
  16.     int       reg;
  17. {
  18.     switch (reg) {
  19.     case LINE:
  20.     set_line_types();
  21.     break;
  22.     default:
  23.     set_other_types();
  24.     break;
  25.     }
  26.     line_mode = CLICK;
  27. }
  28.  
  29. set_line_types()
  30. {
  31.     xv_set(base_win->lmode,
  32.        PANEL_CHOICE_STRINGS,
  33.        line_strtab[CLICK],
  34. #ifdef FIXED
  35.        line_strtab[DRAG],
  36.        line_strtab[LSQ],
  37. #endif
  38.        NULL,
  39.        NULL);
  40. }
  41.  
  42. set_other_types()
  43. {
  44.     xv_set(base_win->lmode,
  45.        PANEL_CHOICE_STRINGS,
  46.        line_strtab[CLICK],
  47.        NULL,
  48.        NULL);
  49. }
  50.